package com.vhall.component.dao.room;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vhall.component.entity.room.entity.AnchorRoomLkEntity;
import com.vhall.component.entity.room.vo.AnchorRoomLkDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 房间主播关联表 Mapper 接口
 *
 * @author wangxing
 * @since 2022-09-28
 */
@Mapper
@Repository
public interface AnchorRoomLkMapper extends BaseMapper<AnchorRoomLkEntity> {


    /**
     * 通过房间id获取房间关联的一个有效主播id
     *
     * @param roomId 房间id
     * @return 关联主播id信息
     */
    List<AnchorRoomLkDTO> selectByRoomId(@Param("roomId") String roomId);
}
